package chapter_22_state.p3_sample2;

/**
 * Created by yao on 2016/10/11.
 */
public class Client {
    public static void main(String[] args) {
        Player player = new Player();
        player.shot();      //正常状态下投篮
        player.setState(new NoNormalState());
        player.shot();      //不正常状态下投篮
        player.setState(new SuperState());
        player.shot();      //超常状态下投篮
    }
}
